From 9bf649b4a7eac81851d3ea9ac7b6fb29b1a79fa4 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Tue, 26 Dec 2006 02:44:03 +0000 Subject: [PATCH] Clean up comments and note (per bug 8382) that internal error codes come from Title::moveTo() --- maintenance/moveBatch.php | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/maintenance/moveBatch.php b/maintenance/moveBatch.php index 8d7141cd4e..13a5122524 100644 --- a/maintenance/moveBatch.php +++ b/maintenance/moveBatch.php @@ -1,13 +1,23 @@ ] [-r ] [-i ] -# where -# is a file where each line has two titles separated by a pipe -# character. The first title is the source, the second is the destination. -# is the username -# is the move reason -# is the number of seconds to sleep for after each move +/** + * Maintenance script to move a batch of pages + * + * @package MediaWiki + * @subpackage Maintenance + * @author Tim Starling + * + * USAGE: php moveBatch.php [-u ] [-r ] [-i ] + * + * - file with two titles per line, separated with pipe characters; + * the first title is the source, the second is the destination + * - username to perform moves as + * - reason to be given for moves + * - number of seconds to sleep after each move + * + * This will print out error codes from Title::moveTo() if something goes wrong, + * e.g. immobile_namespace for namespaces which can't be moved + */ $oldCwd = getcwd(); $optionsWithArgs = array( 'u', 'r', 'i' ); -- 2.20.1